'user strict';
var quitAndNotice = require('../../../../../module/quitAndNotice');
var app = getApp();

function publishForm() {
    wx.request({
        url: `https://wx.jingqi.ink/wxapp/publish_form/${app.globalData.user_form[0].form_id}`,
        method: 'GET',
        success: function (res) {
            //退出当前页面并提示保存成功
            quitAndNotice(1000, '../recruitForm', '发布成功');
            app.globalData.user_form = '';
        }
    })
}
module.exports = publishForm;